// 快件相关接口
import http from "../common/http.js";

export default {
  // 提交申请
  apply: (data, needLoading) => {
    return http.POST("/new-salesman/add-merchant", data, needLoading);
  },
  // 获取申请详情
  detail: (data, needLoading) => {
    return http.GET("/merchant/detail", data, needLoading);
  },
  // 获取申请列表
  list: (data, needLoading) => {
    return http.GET("/merchant/list", data, needLoading);
  },
  // 订单列表
  orderList: (data, needLoading) => {
    return http.GET("/merchant/order-list", data, needLoading);
  },
  // 业务员后台首页数据
  index: (data, needLoading) => {
    return http.GET("/new-salesman/get-user-info", data, needLoading);
  },
  // 订单列表
  classList: (data, needLoading) => {
    return http.GET("/merchant/cat", data, needLoading);
  },
  // 申请店铺
  applyShop: (data, needLoading) => {
    return http.POST("/merchant/submit-merchant", data, needLoading);
  },
  // 审核店铺列表
  auditList: (data, needLoading) => {
    return http.POST("/new-salesman/mch-list", data, needLoading);
  },
  // 审核店铺
  audit: (data, needLoading) => {
    return http.POST("/new-salesman/audit", data, needLoading);
  },
  // 下级店铺列表
  storeList: (data, needLoading) => {
    return http.GET("/merchant/store-list", data, needLoading);
  },
  // 获取业务员二维码
  code: (data, needLoading) => {
    return http.GET("/merchant/qr", data, needLoading);
  },
  // 获取业务员列表
  userList: (data, needLoading) => {
    return http.GET("/merchant/salesman", data, needLoading);
  },
  // 申请店铺配置信息
  applyGet: (data, needLoading) => {
    return http.GET("/saas/other-info", data, needLoading);
  },
  // 解析图片
  analysis: (data, needLoading) => {
    return http.POST("/saas/ocr-info", data, needLoading);
  },
  // 获取小程序完善信息
  completeInfo: (data, needLoading) => {
    return http.POST("/new-salesman/progress", data, needLoading);
  },
  // 快速注册小程序
  applyMini: (data, needLoading) => {
    return http.POST("/new-salesman/apply-mini", data, needLoading);
  },
  // 完善小程序信息
  comMini: (data, needLoading) => {
    return http.POSTJSON("/new-salesman/edit-mini-info", data, needLoading);
  },
  // 添加小程序分类
  addCat: (data, needLoading) => {
    return http.POSTJSON("/new-salesman/set-category", data, needLoading);
  },
  // 删除小程序分类
  delCat: (data, needLoading) => {
    return http.POST("/new-salesman/del-category", data, needLoading);
  },
  // 小程序更新模板
  updateTem: (data, needLoading) => {
    return http.POST("/new-salesman/up-mini", data, needLoading);
  },
  // 小程序提交审核
  subAudit: (data, needLoading) => {
    return http.POST("/new-salesman/submit-audit", data, needLoading);
  },
  // 小程序发布
  releaseApp: (data, needLoading) => {
    return http.POST("/new-salesman/release", data, needLoading);
  },
  // 绑定收款码
  bindCode: (data, needLoading) => {
    return http.POST("/new-salesman/bind-pay-qrcode", data, needLoading);
  },
  // 完善支付宝小程序信息
  comAli: (data, needLoading) => {
    return http.POSTJSON("/new-salesman/set-info", data, needLoading);
  },
  // 小程序更新模板
  aliUpdateTem: (data, needLoading) => {
    return http.POST("/new-salesman/up-ali-mini", data, needLoading);
  },
  // 小程序提交审核
  aliSubAudit: (data, needLoading) => {
    return http.POST("/new-salesman/audit-ali-mini", data, needLoading);
  },
  // 小程序发布
  aliReleaseApp: (data, needLoading) => {
    return http.POST("/new-salesman/push-mini", data, needLoading);
  },
  // 支付宝小程序签约
  signContract: (data, needLoading) => {
    return http.POST("/new-salesman/sign-contract", data, needLoading);
  },
	// 获取申请店铺的审核状态
	getApplyStatus: (data, needLoading) => {
	  return http.GET("/merchant/get-audit", data, needLoading);
	},
};
